package nc.ui.mmpac.sumpickm.serviceproxy;

import nc.bs.framework.common.NCLocator;
import nc.itf.mmpac.sumpickm.ISumPickmMaintainService;
import nc.ui.pubapp.uif2app.actions.IDataOperationService;
import nc.vo.mmpac.sumpickm.entity.AggSumPickmVO;
import nc.vo.mmpac.sumpickm.entity.SumPickmSumDimVO;
import nc.vo.pub.BusinessException;
import nc.vo.pubapp.pattern.model.entity.bill.IBill;

public class SumPickmMaintainServiceProxy implements IDataOperationService {


    @Override
    public IBill[] insert(IBill[] value) throws BusinessException {
        ISumPickmMaintainService operator = NCLocator.getInstance().lookup(ISumPickmMaintainService.class);
        AggSumPickmVO[] vos = operator.insert((AggSumPickmVO[]) value);
        return vos;
    }

    @Override
    public IBill[] update(IBill[] value) throws BusinessException {
        ISumPickmMaintainService operator = NCLocator.getInstance().lookup(ISumPickmMaintainService.class);
        AggSumPickmVO[] vos = operator.update((AggSumPickmVO[]) value);
        return vos;
    }

    @Override
    public IBill[] delete(IBill[] value) throws BusinessException {

        ISumPickmMaintainService operator = NCLocator.getInstance().lookup(ISumPickmMaintainService.class);
        operator.delete((AggSumPickmVO[]) value);
        return null;
    }

    public void insertSumDimVO(SumPickmSumDimVO sumdimVO) throws BusinessException {
        ISumPickmMaintainService operator = NCLocator.getInstance().lookup(ISumPickmMaintainService.class);
        operator.insertSumDimVO(sumdimVO);
    }

}
